package com.dianping.cat.alarm.policy.entity;

import com.dianping.cat.alarm.policy.BaseEntity;
import com.dianping.cat.alarm.policy.IVisitor;







public class Level
  extends BaseEntity<Level>
{
  private String m_id;
  private String m_send;
  private Integer m_suspendMinute;
  private Integer m_recoverMinute;

  public Level() {}

/*  22 */   public Level(String id) { this.m_id = id; }




/*  27 */   public void accept(IVisitor visitor) { visitor.visitLevel(this); }



  public boolean equals(Object obj) {
    if (obj instanceof Level) {
/*  33 */       Level _o = (Level)obj;

/*  35 */       if (!equals(getId(), _o.getId())) {
        return false;
      }

/*  39 */       return true;
    }

/*  42 */     return false;
  }


/*  46 */   public String getId() { return this.m_id; }



/*  50 */   public Integer getRecoverMinute() { return this.m_recoverMinute; }



/*  54 */   public String getSend() { return this.m_send; }



/*  58 */   public Integer getSuspendMinute() { return this.m_suspendMinute; }





  public void mergeAttributes(Level other) {
/*  72 */     assertAttributeEquals(other, "level", "id", this.m_id, other.getId());

/*  74 */     if (other.getSend() != null) {
/*  75 */       this.m_send = other.getSend();
    }

    if (other.getSuspendMinute() != null) {
/*  79 */       this.m_suspendMinute = other.getSuspendMinute();
    }

/*  82 */     if (other.getRecoverMinute() != null) {
/*  83 */       this.m_recoverMinute = other.getRecoverMinute();
    }
  }

  public Level setId(String id) {
/*  88 */     this.m_id = id;
/*  89 */     return this;
  }

  public Level setRecoverMinute(Integer recoverMinute) {
/*  93 */     this.m_recoverMinute = recoverMinute;
/*  94 */     return this;
  }

  public Level setSend(String send) {
/*  98 */     this.m_send = send;
/*  99 */     return this;
  }

  public Level setSuspendMinute(Integer suspendMinute) {
/* 103 */     this.m_suspendMinute = suspendMinute;
/* 104 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/policy/entity/Level.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */